package com.bbzn.user.client;

import com.bbzn.user.comment.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * @Author 蒋洪媛
 * @Date 2021/10/27 18:00
 * @Version 2.0
 */
@FeignClient("user")
@RequestMapping("user")
public interface UserClient {

    @PostMapping("/selectSelective")
    List<User> selectSelective(@RequestBody User record) throws Exception;

    @PostMapping("/selectBatchIds")
    List<User> selectBatchIds(@RequestBody List<Long> ids) throws Exception;

    @PostMapping("/selectByPrimaryKey")
    User selectByPrimaryKey(@RequestBody Long id) throws Exception;

    @PostMapping("/updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(@RequestBody User record) throws Exception;

    @PostMapping("/selectSubIdByPid")
    List<Long> selectSubIdByPid(@RequestBody Long pid) throws Exception;

    @PostMapping("/selectPidById")
    List<Long> selectPidById(@RequestBody Long id);
}